<div class="users form">
<?php //print_r($usuario)?>
<?php echo $form->create('User');?>
	<fieldset>
 		<legend><?php __('Modificar Mi Perfil');?></legend>
	<?php
		echo $form->input('nombre');
		echo $form->input('apellido');
		echo $form->input('username');
                echo $form->input('pais_id', array('label' => 'Elija su pais','options' => $paises_list, 'default' => $form->value('User.pais_id')));
		echo $form->input('nacimiento', array('label' => 'Fecha de nacimiento', 'dateFormat' => 'DMY', 'minYear' => date('Y') - 70, 'maxYear' => date('Y'), 'default' => $form->value('User.nacimiento')));
		echo $form->input('sexo', array('options' => array('F' => 'Femenino','M' => 'Masculino'),'default' => $form->value('User.sexo')));
		echo $form->input('direccion');
		echo $form->input('telefono');
		echo $form->input('password_confirm',array('label' => 'Ingrese su password para realizar los cambios', 'type' => 'password'));
		
		echo $form->input('modificar_pass', array('label' => 'Modificar Password', 'type' => 'checkbox', 'multiple' => 'checkbox' ));
		echo $form->input('password_nuevo',array('label' => 'Password Nuevo', 'type' => 'password'));
		
	?>
	</fieldset>
<?php echo $form->end('Submit');?>
</div>
<div class="actions">
	<ul>
		<li><?php //echo $html->link(__('Delete', true), array('action'=>'delete', $form->value('User.user')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('User.user'))); ?></li>
		<li><?php //echo $html->link(__('Lista de Paises', true), array('controller'=> 'paises', 'action'=>'index')); ?> </li>
		<li><?php //echo $html->link(__('Lista de Grupos', true), array('controller'=> 'grupos', 'action'=>'index')); ?> </li>
	
	</ul>
</div>
